package com.next.muscu.visual;

public class ModelParamObserver {
	
	public static final int CHANGE_SINGLE = 0;
	public static final int CHANGE_MULTIPLE = 1;
	public static final int REMOVE_SINGLE = 2;
	public static final int REMOVE_MULTIPLE = 3;
	public static final int ADD_SINGLE = 4;
	public static final int ADD_MULTIPLE = 5;
	
	/**
	 * @uml.property  name="action"
	 */
	int action;
	/**
	 * @uml.property  name="index"
	 */
	int index;
	/**
	 * @uml.property  name="firstIndex"
	 */
	int firstIndex;
	/**
	 * @uml.property  name="lastIndex"
	 */
	int lastIndex;
	
	public ModelParamObserver(int action, int index) {
		super();
		this.action = action;
		this.index = index;
	}

	public ModelParamObserver(int action, int firstIndex, int lastIndex) {
		super();
		this.action = action;
		this.firstIndex = firstIndex;
		this.lastIndex = lastIndex;
	}

	/**
	 * @return
	 * @uml.property  name="action"
	 */
	public int getAction() {
		return action;
	}

	/**
	 * @return
	 * @uml.property  name="index"
	 */
	public int getIndex() {
		return index;
	}

	/**
	 * @return
	 * @uml.property  name="firstIndex"
	 */
	public int getFirstIndex() {
		return firstIndex;
	}

	/**
	 * @return
	 * @uml.property  name="lastIndex"
	 */
	public int getLastIndex() {
		return lastIndex;
	}

	@Override
	public String toString() {
		return "ModelParamObserver [action=" + action + ", index=" + index
				+ ", firstIndex=" + firstIndex + ", lastIndex=" + lastIndex
				+ "]";
	}
	
	
}
